package com.example.demo.repository;

import com.example.demo.entity.Home;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface HomeRepository extends JpaRepository<Home, Long> {

    Home findBySmsTimeAndType(Date smsTime, String type);
    void deleteBySmsTimeAndType(Date smsTime, String type);
}

